//
//  ChangePayTypeViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/27.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ChangePayTypeViewController.h"
#import "ChangePayViewModel.h"
#import "OfflineRemittanceViewController.h"

@interface ChangePayTypeViewController ()<ChangePayTypeDelegate>
@property (nonatomic,strong) ChangePayViewModel * payViewModel;
@end

@implementation ChangePayTypeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"选择付款方式";
    self.payViewModel = [[ChangePayViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    self.payViewModel.delegate = self;
}

#pragma mark -- ChangePayTypeDelegate
-(void)changePayDidSelectRowAtIndexPath:(NSIndexPath *)c_index{
    if (c_index.section == 1 && c_index.row == 0) {
        OfflineRemittanceViewController * offlineVC = [OfflineRemittanceViewController new];
        [self.navigationController pushViewController:offlineVC animated:YES];
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
